<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class="app-container">
    <el-form id="mvcfm">
      <el-row>
        <el-col :span="25" :xs="24">
          <el-button @click="gotoPage('/mes/systemadmin/CustomersReports?'+vueparams+'')" type='primary' size="mini"><i class='fa fa-reply'></i>返回</el-button>
          <el-button @click="gotoPage('/mes/systemadmin/CustomersPrint?'+vueparams+'')" type='primary' size="mini">打印</el-button>
          <div class="big-title">
            <span class="big-title-left">
              <h1>{{param.title}}</h1>
            </span>
          </div>
          <div>
            <el-row>
              <el-col :span="12">
                <el-form-item label="开始时间" prop="">
                  {{param.cdate}}
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="结束时间" prop="">
                  {{param.endate}}
                </el-form-item>
              </el-col>
            </el-row>
          </div>
          <div class="form-unit">
            <span class="mvc-title-left"> 客户列表 </span>
          </div>
          <el-table :data="message">
            <el-table-column label="客户名称" prop="client_name">
            </el-table-column>
            <el-table-column label="客户条形码" prop="client_barcode">
            </el-table-column>
            <el-table-column label="客户类型" prop="client_class">
            </el-table-column>
            <el-table-column label="成交可能性" prop="client_mode">
            </el-table-column>
            <el-table-column label="网站地址" prop="">
              <template slot-scope="scope">
                <el-link href="gotoPage('http://'+emt.map['client_net']+'')" type='primary'>{{scope.row.client_net}}</el-link>
              </template>
            </el-table-column>
            <el-table-column label="管理人" prop="pname">
            </el-table-column>
            <el-table-column label="转成时间" prop="client_uptime">
            </el-table-column>
          </el-table>
          <pagination v-show="total>0" :total="total" :limit.sync="pageSize" @pagination="getPage" />
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'CustomersPrint',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        message: [],
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/mes/systemadmin/CustomersPrint/customersPrint?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
